<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">待支付:</label>
        <div class="col-xs-12 col-sm-8">
            <input value="{$nopay}" data-rule="" class="form-control" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动店铺:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-shop_no" data-rule="required" class="form-control selectpicker" data-live-search="true" name="row[shop_no]">
                {foreach name="shop" item="vo"}
                <option value="{$vo.shop_no}" {if $row.shop_no==$vo.shop_no}selected{/if}>{$vo.shop_name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">每日循环发布:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            <label for="row[is_loop]"><input id="row[is_loop]" name="row[is_loop]" type="radio" value="1" {notempty name="$row.super_play_no"}checked{/notempty}  /> 每天循环发布</label> 
            <label for="row[is_loop]"><input id="row[is_loop]" name="row[is_loop]" type="radio" value="0" {empty name="$row.super_play_no"}checked{/empty}  /> 不循环发布</label> 
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动类型:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input id="c-play_type" data-rule="required" data-source="general/config/get_configs?name=play_type" class="form-control selectpage" name="row[play_type]" type="text" value="{$row.play_type|htmlentities}">
        </div>
    </div>
    <div class="form-group" id="is_qcsc" {if $row.play_type==1}style="display: none;"{/if}>
        <label class="control-label col-xs-12 col-sm-2">显示位置:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-is_qcsc"  class="form-control selectpicker" name="row[is_qcsc]">
                <!-- <option value="">请选择</option> -->
                <option value="0" {if $row.is_qcsc==0}selected{/if}>不在全城试吃显示</option>
                <option value="1" {if $row.is_qcsc==1}selected{/if}>在全城试吃显示</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动名额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" value="{$row.num|htmlentities}" data-rule="required" class="form-control" name="row[num]" type="number">
        </div>
    </div>
    
    <div class="form-group" id="user_pay" {if $row.play_type==2}style="display:none;"{/if}>
        <label class="control-label col-xs-12 col-sm-2">用户实付金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_pay" value="{$row.user_pay|htmlentities}" data-rule="required" class="form-control" name="row[user_pay]" type="number">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商家结算金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_settlement" value="{$row.shop_settlement|htmlentities}" data-rule="required" class="form-control" name="row[shop_settlement]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">技术服务费:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_amt" value="{$row.service_amt|htmlentities}" data-rule="required" class="form-control" name="row[service_amt]" type="number">
        </div>
        <div class="col-xs-12 col-sm-2"></div>
        <div style="text-align: center;color: red;font-size: 10px;">*用户返现公式=商家结算金额-技术服务费</div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" type="text" class="form-control datetimerange" data-time-picker="false" placeholder="活动日期" name="row[date_range]" date-show-dropdowns="true" value="{$row.date_range|htmlentities}" autocomplete="off" /> 
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" id="c-start_date" type="text" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" placeholder="" name="row[start_date]" value="{$row.start_date|htmlentities}" style="width: 40%" />
            至
            <input data-rule="required" id="c-end_date" type="text" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" placeholder="" name="row[end_date]" value="{$row.end_date|htmlentities}" style="width: 40%" />
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">每日时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" id="c-start_time_str" type="text" class="form-control datetimepicker" data-date-format="HH:mm" placeholder="开始时间，例：10:00" name="row[start_time_str]" value="{$row.start_time_str|htmlentities}" style="width: 40%" />
            至
            <input data-rule="required" id="c-end_time_str" type="text" class="form-control datetimepicker" data-date-format="HH:mm" placeholder="结束时间，例：14:00" name="row[end_time_str]" value="{$row.end_time_str|htmlentities}" style="width: 40%" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动方案:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-scheme_no" data-rule="required" data-source="general/config/get_configs?name=play_scheme" class="form-control selectpage" name="row[scheme_no]" type="text" value="{$row.scheme_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动标签:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input id="c-play_label" data-rule="" data-source="general/config/get_configs?name=play_label" class="form-control selectpage" name="row[play_label]" type="text" value="{$row.play_label|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">机审需求:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-machine_audit" data-rule="" data-source="general/config/get_configs?name=machine_audit" class="form-control selectpage" name="row[machine_audit]" type="text" value="{$row.machine_audit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" data-rule="" class="form-control" name="row[remarks]" type="text" value="{$row.remarks|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">下单次数限制:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
                <label for="row[times_limit]-0"><input id="row[times_limit]-0" name="row[times_limit]" type="radio" value="0" {if $row.times_limit==0}checked{/if} /> 不限制</label>
                <label for="row[times_limit]-1"><input id="row[times_limit]-1" name="row[times_limit]" type="radio" value="1" {if $row.times_limit==1}checked{/if} /> 限制</label>
            </div>
        </div>
    </div>
    <div class="form-group" id="xdcs" {if $row.times_limit==0}style="display: none;"{/if}>
        <label class="control-label col-xs-12 col-sm-2">下单次数:</label>
        <div class="col-xs-12 col-sm-8">
            每
            <input id="c-jt" type="text" class="form-control" placeholder="几" name="row[jt]" value="{$row.jt|htmlentities}" style="width: 40%" />
            天
            <input id="c-jc" type="text" class="form-control" placeholder="几" name="row[jc]" value="{$row.jc|htmlentities}" style="width: 40%" />
            次
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
